﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopFenxiaoSku : BaseObject
    {
        //begin
        public TopFenxiaoSku(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _StandardPrice;
        [Size(SizeAttribute.Unlimited)]
        public string StandardPrice
        {
            get
            {
                return _StandardPrice;
            }
            set
            {
                SetPropertyValue("StandardPrice", ref _StandardPrice, value);
            }
        }
        private string _Id;
        [Size(SizeAttribute.Unlimited)]
        public string Id
        {
            get
            {
                return _Id;
            }
            set
            {
                SetPropertyValue("Id", ref _Id, value);
            }
        }
        private long _Quantity;
        public long Quantity
        {
            get
            {
                return _Quantity;
            }
            set
            {
                SetPropertyValue("Quantity", ref _Quantity, value);
            }
        }
        private string _Properties;
        [Size(SizeAttribute.Unlimited)]
        public string Properties
        {
            get
            {
                return _Properties;
            }
            set
            {
                SetPropertyValue("Properties", ref _Properties, value);
            }
        }
        private string _Name;
        [Size(SizeAttribute.Unlimited)]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _CostPrice;
        [Size(SizeAttribute.Unlimited)]
        public string CostPrice
        {
            get
            {
                return _CostPrice;
            }
            set
            {
                SetPropertyValue("CostPrice", ref _CostPrice, value);
            }
        }
        private string _OuterId;
        [Size(SizeAttribute.Unlimited)]
        public string OuterId
        {
            get
            {
                return _OuterId;
            }
            set
            {
                SetPropertyValue("OuterId", ref _OuterId, value);
            }
        }
        private TopFenxiaoProduct _FenxiaoProduct;
        [Association("FenxiaoProductSkus", typeof(TopFenxiaoProduct))]
        public TopFenxiaoProduct FenxiaoProduct
        {
            get
            {
                return _FenxiaoProduct;
            }
            set
            {
                SetPropertyValue("FenxiaoProduct", ref _FenxiaoProduct, value);
            }
        }
        //end

    }
}
